package cug.xxs.jpa.repository;

import cug.xxs.jpa.domain.Fault;
import cug.xxs.jpa.domain.Model;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * \* Created with IntelliJ IDEA.
 * \* @author: 彭诗杰
 * \* @date: 2019/7/27
 * \* @time: 16:11
 * \* Description:
 * \
 */
@Repository("faultRepo")
public interface FaultRepo extends JpaRepository<Fault, String> {

    /**
     * 通过Model查询Fault
     *
     * @param model
     * @return
     */
    Fault findByModel(Model model);
}
